import React from 'react';
import ReactDOM from 'react-dom';

import Store from './store'
import RouterConfig from './router';
import * as serviceWorker from './serviceWorker';
import './styles/index.less';
import {Provider} from 'mobx-react';
// import intl from './language/i18n';
// 是否需要使用rem
// import './config/rem'

// 是否需要国际化，使用：{this.intl.get('test', '测试')}
// async function getIntialIntl() {
//   React.Component.prototype.intl = await intl()
//   ReactDOM.render(<RouterConfig />, document.getElementById('root'));
// }
//
// getIntialIntl()

ReactDOM.render(
  <Provider store={Store}>
    <RouterConfig />
  </Provider>,
  document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
